<template>
    <div>
        <Form :model="formData" @submit.native.prevent="save" :label-width="80">
            <FormItem label="节点"><Input v-model="formData.name" /></FormItem>
<FormItem label=""><Input v-model="formData.title" /></FormItem>
<FormItem label=""><Input v-model="formData.type" type="number" /></FormItem>
<FormItem label=""><Select v-model="formData.status"><Option v-for="item in statusList" :value="item.value" :key="item.value">{{ item.label }}</Option></Select></FormItem>
<FormItem label=""><Input v-model="formData.pid" type="number" /></FormItem>
<FormItem label="排序"><Input v-model="formData.sort" type="number" /></FormItem>
<FormItem label=""><Input v-model="formData.condition" type="textarea"/></FormItem>

            <FormItem>
                <Button type="primary" html-type="submit" :loading="formLoading">保存</Button>
            </FormItem>
        </Form>
    </div>
</template>
<script>
    import editPage from "../../mixins/editPage";
    export default {
        data() {
            return {
                formData:{"name":"","title":"","type":"","status":"","pid":"","sort":"","condition":""},
                formLoading: false,
                editUrl:"/admin/auth_rule/edit"
            };
        },
        mixins:[editPage]
    };
</script>